
module.exports = async function () {
  const NacosNamingClient = require('nacos').NacosNamingClient;
  const logger = console;
  const config = saas.config;

  const client = new NacosNamingClient({
    logger,
    serverList: config.nacos.serverList, // replace to real nacos serverList
    namespace: config.nacos.namespace,
  });
  await client.ready();
  return client;
}